<?php

namespace App\Models;

use App\Library\Models\Entity;
use App\Library\Traits\Orm\ShopOrderOrmTrait;

class ShopOrderModel extends Entity
{
    use ShopOrderOrmTrait;

    protected $table = 'shop_order';
    
    protected $primaryKey = 'order_id';
    
    protected $fillable = [
        'order_id',
        'serial_number',
        'buy_user_id',
        'sell_user_id',
        'order_sn',
        'order_cancel_sn',
        'order_status',
        'order_buy_status',
        'order_type',
        'order_sell_status',
        'order_is_delete',
        'product_id',
        'ps_id',
        'order_add_time',
        'order_confirm_time',
        'pay_price',
        'order_total_price',
        'order_total_real_price',
        'order_ensure_price',
        'order_product_price',
        'order_product_num',
        'order_total_handleing_price',
        'discount_price',
        'coupon_discount',
        'discount',
        'active_discount',
        'sub_price',
        'order_pay_type',
        'order_is_return',
        'order_is_self_pickup',
        'order_pay_order_sn',
        'order_pay_callback_json',
        'order_pay_api_status',
        'order_pay_time',
        'order_delivery_time',
        'order_cancel_order_sn',
        'order_cancel_callback_json',
        'order_cancel_api_status',
        'order_cancel_time',
        'order_contacts',
        'order_contacts_mobile',
        'order_contacts_address',
        'order_note',
        'invite_code',
        'is_cart',
        'plug',
        'plug2',
        'help',
        'add_at',
        'created_at',
        'updated_at'
    ];
}
